<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateInvestmentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('investment', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('shop_id')->comment('=shops.id');
            $table->decimal('amount','16','2')->comment('金额');
            $table->string('introduce')->comment('介绍');
            $table->integer('rent_clothes')->comment('租衣权(月数)');
            $table->integer('membership_card')->comment('每月能获得会员卡的数量(张数)');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('investment');
    }
}
